package com.crm.controller;

import com.crm.dto.TransferPageDTO;
import com.crm.result.PageResult;
import com.crm.result.ResponseResult;
import com.crm.result.Result;
import com.crm.service.TransferService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RequestMapping("transfer")
@RestController
@Api(tags = "转派管理相关接口")
public class TransferController {
    @Autowired
    private TransferService transferService;

    /**
     * 转派管理分页查询
     *
     * @param transferPageDTO
     * @return
     */
    @GetMapping("/list")
    private Result pageQuery(TransferPageDTO transferPageDTO) {
        log.info("转派管理分页查询：{}", transferPageDTO);
        PageResult pageResult = transferService.pageQuery(transferPageDTO);
        return Result.commonSuccess(pageResult);
    }


}
